import logging
import time

# https://github.com/ydf0509/kuai_log
from kuai_log import get_logger

logger = get_logger(
    name='test',
    level=logging.DEBUG,
    log_filename='t777.log',
    log_path='./logs',
    is_add_file_handler=True,
    json_log_path='./logs/json',
    is_add_json_file_handler=True,
)

t_start = time.time()
for i in range(10):
    logger.debug(i)
    logger.info(i)
    logger.warning(i)
    logger.error(i)
    logger.critical(i)
print(time.time() - t_start)
